
<h2 class="title3" style="width: 95%">
	团队成员管理
	<%= link_to(image_tag("add.gif"),"/content/add_member", :title => "添加研究资料") %>
</h2>
<table>
	<tr class="tab">
		<th width="40" align="center">序号</th>
		<th width="180" align="left">标题</th>
		<th width="180" align="center">创建时间</th>
		<th width="120" align="right">操作</th>
	</tr>
 	<% @members.each_with_index do |member, index| %>
		<tr onmouseover="this.className='cur_tr';" onmouseout="this.className='';" class="">
			<td align="center" class="number"><%= (index + 1) + (params[:page].to_i * 10) %></td>
			<td><%= link_to member.title, member_path(member), :title => member.title %></td>
		  <td align="center"><%= member.created_at.strftime("%Y-%m-%d %H-%M-%S") %></td>
			<td align="right">
				<%= link_to image_tag("modify.gif"), {:controller => :content, :action => :edit_member,:id => member.id}, {:title => "修改"} %>
				<%= link_to image_tag("destroy.gif"), {:controller => :content, :action => :destroy_member,:id => member.id},{:confirm => "确定删除？", :title => "删除"} %>
			</td>
		</tr>
 	<% end %>
	<% if @members.page_count > 1 %>
	<tr><td colspan="3"><%= will_paginate @members %></td></tr>
	<% end %>
</table>
